object Variable{
    def main(args: Array[String]): Unit = {
        var aStrig = "aaaaaaaa"
        println(aStrig)
        var aInt: Int = 996
        println(aInt)
        var x, y = 666
        println((x, y))
        var t = ("key", 996, true, null)
        println(t)
        println(96 + "hello")
        var one = if(true) 15 else 99
        println(one.toString())
        var num1: Int = 65
        var c: Char = num1.toChar
        println(c)

        // var c1: Char = 99999 
        // error: type mismatch; found   : Int(99999) required: Char
        // 数据溢出不会报错，也不会自动转换为更高精度
        var num2: Int = 1999999999 + 1999999999
        var num3 = 1999999999 + 1999999999
        println(num2) // -294967298
        println(num3) // -294967298
        var num4: Int = 3.14.toInt
        println(num4)
    }

    def ff() = {
        println("ffffff")
        12345
    }


}